package observer;

public class demo {
    public static void main(String[] args) {
        Subject subject = new Subject();
        new ObserverEntityOne(subject);
        new ObserverEntityTwo(subject);
        new ObserverEntityThree(subject);

        System.out.println("State change : 15");
        subject.setState(15);
        System.out.println("State change : 10");
        subject.setState(10);
    }
}
